package net.osweb.crm.modules.assist.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Vote entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "assist_vote")
public class Vote implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 8141257529102121333L;
	private Integer id;
	private Integer voteid;
	private String username;
	private Integer userid;
	private String title;
	private String topic;
	private Integer counts;
	private Timestamp createTime;
	private Timestamp overTime;
	private String comment;

	// Constructors

	/** default constructor */
	public Vote() {
	}

	/** full constructor */
	public Vote(Integer voteid, String username, Integer userid, String title,
			String topic, Integer counts, Timestamp createTime,
			Timestamp overTime, String comment) {
		this.voteid = voteid;
		this.username = username;
		this.userid = userid;
		this.title = title;
		this.topic = topic;
		this.counts = counts;
		this.createTime = createTime;
		this.overTime = overTime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "voteid")
	public Integer getVoteid() {
		return this.voteid;
	}

	public void setVoteid(Integer voteid) {
		this.voteid = voteid;
	}

	@Column(name = "username")
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "title")
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "topic")
	public String getTopic() {
		return this.topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	@Column(name = "counts")
	public Integer getCounts() {
		return this.counts;
	}

	public void setCounts(Integer counts) {
		this.counts = counts;
	}

	@Column(name = "createTime", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "overTime", length = 19)
	public Timestamp getOverTime() {
		return this.overTime;
	}

	public void setOverTime(Timestamp overTime) {
		this.overTime = overTime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}